﻿using System.ServiceModel.Description;
using System.ServiceModel.Dispatcher;

namespace Billing.Service.Wcf
{
    /// <summary>
    /// Enables the Web programming model for a service.
    /// Overrides the class WebHttpBehavior to modify the default query string convert on the wcf service.
    /// </summary>
    public class WcfServiceWebHttpBehavior : WebHttpBehavior
    {
        /// <summary>
        /// Gets the query string converter.
        /// </summary>
        /// <param name="operationDescription">The service operation.</param>
        /// <returns>QueryStringConverter instance.</returns>
        protected override QueryStringConverter GetQueryStringConverter(OperationDescription operationDescription)
        {
            return new WcfServiceQueryStringConverter();
        }
    }
}
